<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src=" https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
    <link rel="stylesheet" href="css/style.css" />
  </head>
  <body>
    <div class="nav">
      <div class="header">
        <div class="logo"></div>
        <div class="header-text">
          <h1>小米商城</h1>
          <p>让每个人都能享受科技的乐趣</p>
        </div>
      </div>
    </div>
     <div class="main">
      <img src="images/banner.png" alt="" />
      <div class="login-group">
        <div class="login">
          <div class="account">账号登陆</div>
          <div class="2dcode">扫码登录</div>
        </div>
        <div>
          <div class="login-account">
            <form>
              <input type="text" placeholder="邮箱/手机/小米账号" name="" />
              <input type="password" placeholder="密码" name="" />
              <button>立即登陆</button>
            </form>
            <div class="info">
              <span>注册小米账号</span>
              <span>忘记密码</span>
            </div>
          </div>
          <div class="login-2dcode">
            <img src="images/2dcode.png" alt="">
          </div>
        </div>
        <div class="other-group">
          <div class="other-line-text">
            <div class="other-line"></div>
            <div class="other-text">其他方式登陆</div>
            <div class="other-line"></div>
          </div>
          <div class="icons">
            <a href="#"><img src="images/qq.svg" alt="" /></a>
            <a href="#"><img src="images/weibo.svg" alt="" /></a>
            <a href="#"><img src="images/wechat.svg" alt="" /></a>
            <a href="#"><img src="images/alipay.svg" alt="" /></a>
          </div>
        </div>
      </div>
    </div>
    <footer>
      <p>
        <span>简体</span>
        <span>繁体</span>
        <span>english</span>
        <span>常见问题</span>
      </p>
      <div class="foot-center">
        <div>小米公司版权所有-京ICP备10046444-</div>
        <img class="beian" src="images/beian.png" alt="">
        <div>京公网安备11010802020134号-京ICP证110507号</div>
      </div>
    </footer>
  </body>
  
  <script>
    $(".account, .2dcode").click(function () {
      $(`.login-${$(this).attr("class")}`)
        .show(500)
        .siblings()
        .hide(500);
    });
  </script>
</html>
